<template>
  <div id="app">
    <!--
       因为router-view是一级路由出口 keep-alive仅对该路由出口有效
     -->
     <keep-alive :include="cachePages">
       <router-view></router-view>
     </keep-alive>
  </div>
</template>

<script>
import { mapState } from 'vuex'
export default {
    name:  'App',
    computed:{
      ...mapState(['cachePages'])
    }
};

</script>
